Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn
1 <?php include('header.php'); ?>
2
3
4
5
6 <!-- this is for donor registraton -->
7 <div class="contactus" style="background-color:#fff;">
8 <h3 class="text-center" style="background-color:#272327;color: #fff;">Contact Us</h3>
9
10
11
12 <div class="main_content">
13 <div class="col-md-6" style="border-right: 2px solid black;">
14 <article>
15 <h2>Md. Azharul Islam <h2><h4>Studied B.Sc in Electronics and Communication Engineering</h4>
16 <h5>Hajee Mohammad Danesh Science and Technology University, Dinajpur-5200.</h5>
17 <p> https://portfolio.developerazad.com <br>
18 https://developerazad.wordpress.com <br>
19 https://linkedin.com/in/developerazad <br>
20 https://facebook/developerazad <br>
21 cell: +88 01764761919</p><br>
22 </article>
23 </div>
24 <div class="col-md-6">
25 <h2 class="text-center">Your Message</h2>
26 <form action="" method="post" class="text-center">
27 <label>
28 First Name: <input type="text" name="firstname" value="" placeholder="firstname" required>
29 </label><br><br>
30
31 <label>
32 Last Name: <input type="text" name="lastname" value="" placeholder="lastname" required>
33 </label><br><br>
34
35 <label>
36 Email: <input type="email" name="email" value="" placeholder="Your email" required>
37 </label><br><br>
38 <label>
39 Your Comment: <textarea name="comment" id="" cols="30" rows="4" required></textarea>
40 </label><br><br>
41
42 <input type="submit" value="Send Us" name="submit" style="margin-top: 75px;border-radius: 2px;"/>
43 <!-- <button name="submit" type="submit" class="btn btn-info"><i class="icon-signin icon-large"></i> Sign Up</button>
44 -->
45 </form><br><br><br>
46 </div>
47
48
49 </div>
50
51 </div>
52
53
54
55
56 <?php include('footer.php'); ?>
57
58
59
60 </div><!-- containerFluid Ends -->
61
62
63
64
65 <script src="js/bootstrap.min.js"></script>
66
67
68
69 <!-- contact information inserting -->
70 <?php
71
72 include('config.php');
73 if(isset($_POST['submit'])){
74
75
76 $sql = "INSERT INTO contact (firstname, lastname,email,comment)
77 VALUES ('" . $_POST["firstname"] ."','" . $_POST["lastname"] . "','" . $_POST["email"] . "','" . $_POST["comment"] . "' )";
78
79 if ($conn->query($sql) === TRUE) {
80 echo "<script>location.replace('success.php');</script>";
81 } else {
82 echo "<script>alert('There was an Error')<script>" . $sql . "<br>" . $conn->error;
83 }
84
85 $conn->close();
86 }
87 ?>
88
89
90
91
92 </body>
93 </html>